﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EA;
using ModelQuality.Metrics.Services;

namespace ModelQuality.Metrics.Engine
{
    class ValidationContext : IValidationContext
    {
        public IRepositoryServices RepositoryServices { get; private set; }

        public Repository Repository { get; private set; }

        /// <summary>
        /// Moq
        /// </summary>
        public ValidationContext() { }

        public ValidationContext(Repository repository)
        {
            this.Repository = repository;
            this.RepositoryServices = ServiceLocator.GetRepositoryServices(this);
        }
    }
}
